export default {
  data () {
    return {
      list_c: [
        { label: '编号', prop: 'id', },
        { label: '名称', prop: 'name' },
        { label: '产品', prop: 'productModel.product' },
        { label: '型号', prop: 'productModel.productModel' },
        { label: '规格', prop: 'productModel.productSpecification' },
        { label: '单位', prop: 'productModel.productUnit' }
      ],
      list_e: {
        description: null,
        id: null,
        name: null,
        productModelId: null
      },
      list_e_c: [
        { form_item_prop: { label: '名称', prop: 'name' }, component_name: 'el-input', },
        { form_item_prop: { label: '产品', prop: 'product' }, component_name: 'el-input', component_prop: { disabled: true } },
        { form_item_prop: { label: '产品模型', prop: 'productModelId' }, component_name: 'el-select', component_prop: { option_data: [], option_prop: { value: 'id', label: 'modelName' } }, handler: { change: (val) => { this.change(val) } } },
        { form_item_prop: { label: '描述', prop: 'description' }, component_name: 'el-input' },
      ],
      list_detailList_c: [
        { label: '型号', prop: 'material.model' },
        { label: '规格', prop: 'material.specification' },
        { label: '单位', prop: 'material.unit' },
        { label: '用量', prop: 'quantity', cn: 'el-input-number', min: 0, size: 'mini' },
        { label: '备注', prop: 'remark', cn: 'el-input', type: 'textarea' },
      ],
      list_material_c: [
        { label: '编号', prop: 'id' },
        { label: '物料编码', prop: 'code' },
        { label: '物料名称', prop: 'name' },
        { label: '型号', prop: 'model' },
        { label: '规格', prop: 'specification' },
        { label: '单位', prop: 'unit' },
        { label: '单价', prop: 'price' },
        { label: '类型', prop: 'category.name' },
        { label: '备注', prop: 'remark' },
      ],
    }
  },
  methods: {
  },
}